﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using RecruitingApplication.Data_Model;

namespace RecruitingApplication.DashboardView
{
    public partial class DashboardView : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //if its an initial load, get the states from the database
            DataAccessLayer.OpenDB();

            this.StateColumnsListView.DataSource  = DataAccessLayer.GetAllStates();
            this.StateColumnsListView.DataBind();

            DataAccessLayer.CloseDB();
        }

    }
}